import httpInstance from '@/utils/http'

/**
 * @description: 获取分类数据
 * @param {*} id 分类id 
 * @return {*}
 */
//获取指定主类别的所有数据
export const getTopCategoryAPI = (id) => {
  return httpInstance({
    url: `/category/${id}`
  })
}
export const getSubCategoryAPI = (id) => {
  return httpInstance({
    url: `/category/sub/${id}`
  })
}
